i=1
sum=0
while i<=100:
    sum=sum+i
    i+=1
print(f"{sum}")

# print("----------------无限次猜数字游戏------")
# import random
# number=random.randint(0,100)
# print(number)
# i=1
# answer=int(input(f"请第{i}次输入你的猜测："))
# while answer!=number:
#     i+=1
#     answer=int(input(f"猜错啦，请第{i}次输入你的猜测："))
#
# print("恭喜你猜对啦")

#表白10天 每天送10朵花
i=0
while i<10:
    j = 0
    print("❤",end='')
    while j<10:
        print("❀",end='')
        j+=1
    print("\n")
    i+=1

print("english\tchinese")
print("eng\t\tchin")


print("---------用while写九九乘法表---------")
i=1
while i<=9:
    j=1
    while(j<=i):
        print(f"{j}*{i}={i*j}\t",end='')
        j+=1
    print("")
    i+=1

name="我是叽里呱啦乌漆嘛黑巴啦啦小魔仙女王陛下"
for temp in name:
    print(f"{temp}")

temp2="abcdefgabcdefga"
count=0
for x in temp2:
    if x=="a":
        count+=1
print(count)

print("---------1~100有多少偶数--------")
count2=0
for x in range(1,101):
    if x%2==0:
        count2=count2+1
print(count2)

for x in range(1,10):
    for y in range(1,10):
        print(f"{y}*{x}={y*x}\t",end="")
        if y==x:
            break
    print()

for x in range(1,10):
    for y in range(1,x+1):
        print(f"{y}*{x}={y*x}\t",end="")
    print()